//
//  Course.h
//  Gradekeeper0.2
//
//  Created by Qian Tim on 09-11-12.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CourseWork.h"


@interface Courses : NSObject {
	NSString* catagory;
	int number;
	float grade;
	float gradePoint;
	int credit;
	NSString* weights;
	NSString* types;
	NSMutableArray *weightOfWorks;
	NSMutableArray *workTypes;
	NSMutableArray *CourseWorks;
}

@property (nonatomic, retain) NSMutableArray* weightOfWorks;
@property (nonatomic, retain) NSMutableArray* workTypes;
@property (nonatomic, retain) NSMutableArray* CourseWorks;
@property (nonatomic, retain) NSString* catagory;
@property (nonatomic, retain) NSString* weights;
@property (nonatomic, retain) NSString* types;
@property (nonatomic) float gradePoint;
@property (nonatomic) int number;
@property (nonatomic) float grade;
@property (nonatomic) int credit;

-(Courses*) initWithCatagory: (NSString*) newCatagory number: (int) newNumber credit: (int) newCredit types: (NSString*) newTypes weights: (NSString*) newWeights;
-(BOOL) addWork: (CourseWork*) work;
-(NSString*) getName;
-(void) calcGrade;
-(void) dealloc;

@end
